﻿using System.Windows;
using System.Linq;

namespace XEvolve.Presentation.Internal
{
    class ColorSchema
    {
        public const string ALL = "all";
        public string Name { get; private set; }
        public string[] Themes { get; private set; }
        public ResourceDictionary ResourceDictionary { get; private set; }

        public ColorSchema(string name, string[] themes, ResourceDictionary resourceDictionary)
        {
            Name = name;
            Themes = themes;
            ResourceDictionary = resourceDictionary;
        }

        public bool IsApplicable(string theme)
        {
            return Themes.Contains(ALL) || Themes.Contains(theme);
        }
    }
}
